export default function printHtml(html) {
  const iframe = document.createElement('iframe')
  iframe.style.display = 'none'
  document.body.append(iframe)
  iframe.contentDocument.title = '文档'
  iframe.contentDocument.body.append(html.cloneNode(true))
  iframe.contentWindow.print()
  document.body.removeChild(iframe)

  // const myWindow = window.open()
  // myWindow.document.body.append(html.cloneNode(true))
  // myWindow.print()
  // myWindow.close()
}
